
lazy val svall = (project in file("svall"))
  .dependsOn(share)
//  .aggregate(share )
  .settings(commonSettings)
  .settings(
    name := "playweb",
    pipelineStages := Seq(digest, gzip),
//    excludeFilter in digest := "*.js",
    //includeFilter in digest := "*.css",
    libraryDependencies ++= Dependencies.commonDeps,
//    unmanagedBase := baseDirectory.value / "/lib",
    //    Compile / unmanagedJars ++= Seq(
    //      Attributed.blank[File](file(baseDirectory.value + "/lib/dingtalk-sdk-java/taobao-sdk-java-auto_1479188381469-20211011.jar")),
    //      Attributed.blank[File](file(baseDirectory.value + "/lib/dingtalk-sdk-java/taobao-sdk-java-auto_1479188381469-20211011-source.jar")),
    //      //Attributed.blank[File](file(baseDirectory.value + "/lib/argon2-jvm-2.7.jar"))
    //    )
    PlayKeys.devSettings += "play.server.provider" -> "play.core.server.AkkaHttpServerProvider"
  )
  .enablePlugins(PlayScala).enablePlugins(SbtWeb)

lazy val svapi = (project in file("svapi"))
  .dependsOn(share)
//  .aggregate(share )
  .settings(commonSettings)
  .settings(
    name := "apionly",
    libraryDependencies ++= Dependencies.commonDeps,
    PlayKeys.devSettings += "play.server.provider" -> "play.core.server.AkkaHttpServerProvider"
  )
  .enablePlugins(PlayScala)

lazy val share = (project in file("share"))
  .settings(commonSettings)
  .settings(
    libraryDependencies ++= Dependencies.commonDeps,
    unmanagedBase := baseDirectory.value / "/lib",
  ).enablePlugins(PlayScala)


lazy val commonSettings = Seq(
  scalaVersion := "2.13.6",
  organization := "net.osin",
  version := "1.3.1",  // add Kingdee to MoreMes api
)


scalacOptions ++= Seq(
  "-feature",
  "-deprecation",
  "-Xfatal-warnings"
)


Compile / doc / sources := Seq.empty
Compile / packageDoc / publishArtifact := false